<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: 解强
  Date: 2021/11/22
  Time: 9:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}\resource\js\bootstrap.js"></script>
    <script src="${pageContext.request.contextPath}\resource\js\jquery-3.2.1.js"></script>
    <script src="${pageContext.request.contextPath}\resource\js\WdatePicker.js"></script>



</head>
<body>

<form action="list" method="post">

    订单编号<input type="text" name="oid" value="${huixian.oid}">
    下单时间<input type="date" name="otime" value="${huixian.otime}">
-
    <input type="date" name="otime1" value="${huixian.otime1}">
    <%--备注<input type="text" name="beizhu">--%>
    <br>
    <select name="mohu">
        <option value="">---请选择---</option>
        <option value="y.yname" ${huixian.mohu=='y.yname'?'selected':''}>制单人</option>
        <option value="o.cangku" ${huixian.mohu=='o.cangku'?'selected':''}>仓库</option>
        <option value="o.kuwei" ${huixian.mohu=='o.kuwei'?'selected':''}>库位</option>
        <option value="o.orderer" ${huixian.mohu=='o.orderer'?'selected':''}>订货人</option>
        <option value="o.odd" ${huixian.mohu=='o.odd'?'selected':''}>物流单号</option>
        <option value="o.dizhi" ${huixian.mohu=='o.dizhi'?'selected':''}>交货地点</option>


    </select>
    <input type="text" name="zhi" value="${huixian.zhi}">

    <select name="mohu1">
        <option value="">---请选择---</option>
        <option value="o.gross" ${huixian.mohu=='o.gross'?'selected':''}>总金额</option>
        <option value="o.rebate"${huixian.mohu=='o.rebate'?'selected':''}>折让金额</option>
        <option value="o.chengben"${huixian.mohu=='o.chengben'?'selected':''}>附件成本</option>


    </select>

    <input type="text" name="zhi1" value="${huixian.zhi1}">
    <input type="text" name="zhi2" value="${huixian.zhi2}">

    <input type="submit" value="查询">

<table border="1px">
    <tr>
        <td><input type="checkbox"></td>
        <td>下单时间</td>
        <td>订单编号</td>
        <td>制单人</td>
        <td>仓库</td>
        <td>库位</td>
        <td>订货人</td>
        <td>总金额</td>
        <td>折让金额</td>
        <td>交货方式</td>
        <td>物流单号</td>
        <td>附件成本</td>
        <td>交货地点</td>
        <td>备注</td>
    </tr>
<c:forEach items="${list.list}" var="a">
    <tr>
        <td><input type="checkbox"></td>
        <td>
           ${a.otime}
<%--
            <f:formatDate value="${a.otime}" pattern="yyyy-MM-dd"></f:formatDate>
--%>

        </td>
        <td>${a.oid}</td>
        <td>${a.yuser.yname}</td>
        <td>${a.cangku}</td>
        <td>${a.kuwei}</td>
        <td>${a.orderer}</td>
        <td>${a.gross}</td>
        <td>${a.rebate}</td>
        <td>${a.way}</td>
        <td>${a.odd}</td>
        <td>${a.chengben}</td>
        <td>${a.dizhi}</td>
        <td>${a.beizhu}</td>

    </tr>




</c:forEach>






</table>
<input type="button" value="首页" onclick="ye(1)">
<input type="button" value="上一页" onclick="ye(${list.prePage})">
<input type="button" value="下一页" onclick="ye(${list.nextPage})">
<input type="button" value="尾页" onclick="ye(${list.pages})">
<input type="hidden" name="a">


    <script>

        function ye(s){
            $("[name='a']").val(s);
            $("form").submit();


        }



    </script>



</form>

</body>
</html>
